package cn.ibizlab.odoo.core.odoo_mro.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mro.domain.Mro_order;
import cn.ibizlab.odoo.core.odoo_mro.filter.Mro_orderSearchContext;

/**
 * 实体[Mro_order] 服务对象接口
 */

public interface IMro_orderService{
     boolean create(Mro_order mro_order) ;
     boolean remove(Integer id) ;
     Mro_order get(Integer id) ;
     Mro_order get(Mro_order mro_order) ;
     boolean update(Mro_order mro_order) ;
     void updateBatch(List<Mro_order> mro_orders, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Mro_order> mro_orders, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mro_order> searchDefault(Mro_orderSearchContext context) ;

    /**
     * 根据Asset查询
     */
     Page<Mro_order> selectByOdoo_asset(Integer id) ;

    /**
     * 根据保养请求查询
     */
     Page<Mro_order> selectByOdoo_request(Integer id) ;

    /**
     * 根据Maintenance Task查询
     */
     Page<Mro_order> selectByOdoo_task(Integer id) ;

    /**
     * 根据工单查询
     */
     Page<Mro_order> selectByOdoo_wo(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Mro_order> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mro_order> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mro_order> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mro_order> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mro_order convert2Domain(cn.ibizlab.odoo.core.client.model.Imro_order model ,Mro_order domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imro_order convert2Model(Mro_order domain , cn.ibizlab.odoo.core.client.model.Imro_order model);

}
